<div id="black-screen"></div>
<div class="boxLoading text-center">
	Loading your secret stuffs
	<div class="loading"></div>
</div>
<!-- <div id="fb-root"></div> -->
<!-- <script src="http://connect.facebook.net/vi_VN/all.js"></script> -->
<script src="<?php echo $home_url; ?>/js/jquery.min.js"></script>
<script src="<?php echo $home_url; ?>/js/bootstrap.min.js"></script>
<script src="<?php echo $home_url; ?>/js/functions.js"></script>
<script>
	var home_url = "<?php echo $home_url; ?>";
	var router =  "<?php echo $router; ?>";
	$(function(){
		
		$("#request_search").click(function(){
			var keyword = $("#keyword").val();
			if(keyword != ''){
				$("#boxSearch").attr("action",home_url + "/?q=" + encodeURIComponent(keyword));
				$("#boxSearch").submit();
			}
			return false;
		});
		$(window).load(function(){
			$(".boxLoading").hide();
			$("#black-screen").hide();
		});
	});
	
	/* FB.init({
		appId:	'<?php echo $appID;?>',
		cookie:	true,
		status:	true,
		xfbml:	true
	});
	
	FB.Event.subscribe('auth.login', function(response) {
    	window.location.reload();
  	});
	FB.getLoginStatus(function(response) {
		if (response.status === 'connected') {
			console.log('user logged and accepted app');
			// the user is logged in and has authenticated your
			// app, and response.authResponse supplies
			// the user's ID, a valid access token, a signed
			// request, and the time the access token 
			// and signed request each expire
			var uid = response.authResponse.userID;
			var accessToken = response.authResponse.accessToken;
		} else if (response.status === 'not_authorized') {
			console.log('user logged and accepted app');
			console.log(response);
			// the user is logged in to Facebook, 
			// but has not authenticated your app
		} else {
			// the user isn't logged in to Facebook.
			console.log('user not login');
		}
	}); */
</script>
</body>
</html>